//
//  GoodsCell.m
//  gungunchou
//
//  Created by lyzbmacos3 on 2018/12/4.
//  Copyright © 2018年 xskj. All rights reserved.
//

#import "GoodsCell.h"

@implementation GoodsCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
}

- (void)setProductModel:(ProductModel *)productModel
{
    if (productModel) {
        _productModel = productModel;
        [self.imgV sd_setImageWithURL:[NSURL URLWithString:productModel.MainImage] placeholderImage:PLACE_DEFAULT_IMG];
        self.nameLbl.text = productModel.ProName;
        self.priceLbl.text = [NSString stringWithFormat:@"￥%@",productModel.Price];
    }
}

@end
